import request from '@/utils/request'

// 查询应急事件上报列表
export function listAccidentUpload(query) {
  return request({
    url: '/accidentmanagment/accidentUpload/list',
    method: 'get',
    params: query
  })
}

// 查询应急事件上报详细
export function getAccidentUpload(id) {
  return request({
    url: '/accidentmanagment/accidentUpload/' + id,
    method: 'get'
  })
}

// 新增应急事件上报
export function addAccidentUpload(data) {
  return request({
    url: '/accidentmanagment/accidentUpload',
    method: 'post',
    data: data
  })
}

// 修改应急事件上报
export function updateAccidentUpload(data) {
  return request({
    url: '/accidentmanagment/accidentUpload',
    method: 'put',
    data: data
  })
}

// 删除应急事件上报
export function delAccidentUpload(id) {
  return request({
    url: '/accidentmanagment/accidentUpload/' + id,
    method: 'delete'
  })
}
